// SPDX-FileCopyrightText: Adam Evyčędo
//
// SPDX-License-Identifier: AGPL-3.0-or-later

package transformers

import (
	"golang.org/x/text/transform"
)

//nolint:gochecknoglobals
var TransformerNL transform.Transformer = Replace(func(r rune) []rune {
	switch r {
	case 'Ĳ':
		return []rune{'I', 'J'}
	case 'ĳ':
		return []rune{'i', 'j'}
	default:
		return []rune{r}
	}
})
